#define _CRT_SECURE_NO_WARNINGS

#include<iostream>
using namespace std;
#include"string.h"


void test01()
{
	Wang::string s1("1234");
	cout << s1.c_str() << endl;
	s1.push_back('a');
	s1.push_back('a');
	s1.push_back('a');
	s1.push_back('a');
	s1.push_back('a');
	cout << s1.c_str() << endl;
	Wang::string s2(10, 'x');
	cout << s2.c_str() << endl;

	Wang::string s3(s2);
	cout << s3.c_str() << endl;
	Wang::string s4;
	cout << s4.c_str() << endl;
	s4.resize(11, 'a');
	cout << s4.c_str() << endl;

	s4.resize(15, 'x');
	cout << s4.c_str() << endl;
	cout << s4 << endl;
	for (auto e : s4)
		cout << e;
}

void test02()
{
	Wang::string s1("1234");
	Wang::string s2("987");
	s2 += "1111";
	cout << s2;
	s2 += s1;
	cout << s2;
	s2 += 'a';
	cout << s2;
}
#include<string>
int main()
{
	Wang::string s("111");
	Wang::string s1("222");

	s = s1;
	cout << s;
	//char c;
	//cin >> c;
	//cout << c << endl;
	//test02();
	return 0;
}